import lyRequest from '../index.js'

// 获取左上角级联分类数据
export const getClassifyCascadeData = () => {
	return lyRequest.get({
		url: '/baseQuestion/getClassifyCascadeUniVO'
	})
}

// 获取题目对应的统计信息
export const getClassifyRecord = (classifyId, type) => {
	return lyRequest.get({
		url: `/baseQuestion/getSelectQuestionRecord/${classifyId}/${type}`
	})
}

// 顺序答题数据
export const getOrderQuestionList = (classifyId, type) => {
	return lyRequest.get({
		url: `/baseQuestion/getQuestionInfoListWithOrderByUser/${classifyId}/${type}`
	})
}

// 获取模拟考试刷题题库
export const getMockQuestionList = (classifyId, type) => {
	return lyRequest.get({
		url: `/baseQuestion/getExamQuestionInfoListWithByUser/${classifyId}/${type}`
	})
}

// 获取乱序刷题题库
export const getOutOrderQuestionList = (classifyId, type) => {
	return lyRequest.get({
		url: `/baseQuestion/getQuestionInfoListWithOutOfByUser/${classifyId}/${type}`
	})
}

// 获取错题集训题库
export const getMistakeQuestionList = (classifyId, type) => {
	return lyRequest.get({
		url: `/baseQuestion/getMisTakeQuestionInfoListWithByUser/${classifyId}/${type}`
	})
}